package com.lhh.springcloud;

import com.lhh.springcloud.config.DataSourceProxyConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
//注意：需要取消数据源的自动配置
//而是使用seata代理数据源DataSourceProxyConfig
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.lhh.springcloud.dao")
public class SeataStorageMicroServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(SeataStorageMicroServiceApplication.class, args);
    }
}
